=clearfix
  display: inline-block
  &:after
    content: "." 
    height: 0
    clear: both
    visibility: hidden
  * html &
    height: 1px

#content
  form
    p
      label
        display: block
        &.checkbox, &.radio
          display: inline
          font-weight: normal
          font-size: 95%
          text-shadow: none
          margin-right: 1em
        &.multi_option
          margin-bottom: 0.3em
      input.textbox
        font-family: Georgia, Palatino, "Times New Roman", Times, serif
        font-size: 140%
        margin-bottom: 0
      input.checkbox, input.radio
        margin-top: 0.3em
      textarea
        font-size: 100%
        margin-top: 0.3em
      .value
        display: block
        margin-top: 0.25em
        text-shadow: #666 1px 1px 0
      .hint
        font-size: 90%
        display: block
        margin-top: 0.25em
        text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1) 
      a
        color: white
        &.action
          background-color: #7e7e7e
          font-size: 75%
          padding: 0.2em 0.5em 0.30em
          text-decoration: none
          text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1) 
          +round-corners(4px)
          &:hover
            background-color: #555
      &.title
        input.textbox
          margin-top: 4px
          font-family: Georgia, Palatino, "Times New Roman", Times, serif
          font-size: 200%
          width: 99.5%
    .set
      float: left
      width: 100%
      margin-bottom: 1em
      clear: both
      p
        float: left
        margin: 0 1em 0 0
    .buttons
      color: #666
      font-size: 80%
      margin-top: 2.5em
      button, input.button
        font-size: 150%
      a
        +alt-link
    
.drawer
  margin-top: -1em
  margin-bottom: 1em
.drawer_contents
  background: #7e7e7e url(../../images/admin/navigation_shadow.png) repeat-x
  +round-corner("bottom-right", 6px)
  margin: 0
  margin-right: 2px
  padding-bottom: 2px
  overflow: hidden
  table.fieldset
    margin: 0
    padding: 0
    width: 100%
    th, td
      border-top: 1px #999 solid
      padding: 6px
    th
      &.label
        font-size: 85%
        padding: 0 15px 0 10px !important
        whitespace: nowrap
        width: 1%
        vertical-align: middle
        text-align: left
    td
      &.field
        padding-left: 0px
        padding-right: 10px
        text-align: right
        width: auto
        input.textbox
          font-size: 110%
          width: 99.5%
      &.actions
        width: 40px
        text-align: left
        vertical-align: middle
    tr:first-child
      td, th
        border-top: none
.drawer_handle
  padding: 4px 0 5px
  margin-top: -1px
  a
    background: #7e7e7e
    border-bottom-left-radius: 6px
    border-bottom-right-radius: 6px
    color: #f0f0f0
    font-size: 80%
    padding: 4px 21px 5px 10px        
    position: relative
    top: -1px
    text-shadow: #666 1px 1px 0
    text-decoration: none
    +round-bottom-corners(6px)
    &:hover, &:active, &:focus
      text-decoration: underline
    &.more
      background: #7e7e7e url(../../images/admin/metadata_toggle.png) no-repeat 85% 8px
    &.less
      background: #7e7e7e url(../../images/admin/metadata_toggle.png) no-repeat 85% -21px

.box
  color: #333
  background: #f5f1e2 url(../../images/admin/vertical_tan_gradient.png) top left repeat-x
  font-size: 90%
  padding: 1px 15px 10px
  margin: 3px 0 20px
  height: 1%
  overflow-y: auto
  +round-corners(8px)
  h3
    color: #333
    margin: 15px 0 0
    border-bottom: 1px solid #ccc
    padding-bottom: 8px
    .actions
      float: right
      button
        font-size: 13px
        padding-left: 1em
        padding-right: 1em
        position: relative
        top: -4px
  h4
    border-bottom: 1px solid #ccc
    padding-bottom: 4px
    font-size: 110%
    margin-top: 1.5em
  p.ruled
    border-bottom: 1px solid #ddd
    margin: 0
    padding: 0.5em 0
    &:last-child
      border: none
  label
    color: #888
    width: 12em
    display: inline-block
  span.uri
    color: #3399cc
  &:last-child
    margin: 0
  &#preferences
    img.avatar
      float: right
      margin: 10px 0px

.error_with_field .error
  color: #f00
  display: block
  padding: 2px
  padding-top: 0

textarea
  border: 1px solid #cdc295
  font-family: Monaco, "Courier New", Courier, monospace
  font-size: 95%
  &.large
    height: 280px

p.updated_line
  background-color: inherit
  font-size: 80%
  text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1) 
  margin-bottom: 0

body.reversed
  #content
    form
      p
        label
          color: #f5f5f5
          font-weight: normal
          text-shadow: 1px 1px 0 #888
          .hint
            display: inline
      .hint
        color: #d0d0d0
        text-shadow: none
      .buttons
        background: white url(../../images/admin/buttons_background.png) bottom repeat-x
        padding: 12px 10px
        +round-corners(8px)
        +box-shadow(2px, 2px, 3px, rgba(0,0,0,0.15))
      fieldset
        background: #858585
        padding: 20px 15px
        margin-bottom: 20px
        overflow: hidden
        +box-shadow(1px, 1px, 0, #ababab)
        +round-corners(8px)
        h3
          font-weight: bold
          font-size: 120%
          margin: -20px -20px 0 -20px
          padding: 15px 20px 0 20px
          text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.1) 
        p
          margin-bottom: 0
    p.updated_line
      color: #eee
    textarea
      border: 1px solid white
    .box
      +box-shadow(2px, 2px, 3px, rgba(0,0,0,0.15))

body.single_form
  #content
    #single_form
      background: #f5f1e2 url(../../images/admin/vertical_tan_gradient.png) center -15px repeat-x
      border: 0.35em solid #efead3
      padding: 0.5em 1.5em
      padding-right: 22px
      position: relative
      width: 28em
      +round-corners(6px)
      h1
        font-size: 140%    
        margin: 0.75em 0 1.25em
      p
        font-size: 90%
        &.intro, &.error
          font-size: 100%
          line-height: 1.4
        &.error
          color: #cc0000
        label
          font-size: 105%
          &.checkbox
            font-size: 90%
      ul
        font-size: 90%
        list-style: disc
        padding-left: 2em
        li
          margin-bottom: 0.5em
      input.textbox
        width: 98.5%
      span.remember_me
        color: #333
        font-size: 95%
        margin-left: 1em
        label
          margin: 0
        a
          margin: 0
          +default-link
      span.forgot_password
        position: relative
        top: -3px
        margin: 0 1em
        a
          +default-link
      .buttons
        margin: 1.75em 0 1em
    p.version
      background: url(../../images/admin/single_form_shadow.png) top center no-repeat
      color: #666
      font-size: 80%
      padding-top: 10px
      margin-top: 0

body.edit_user, body.edit_personal_preferences
  #avatar
    left: 26em
    position: absolute
    text-align: center
    width: 102px
    p.caption
      font-size: 70%
      color: #e5e5e5
      line-height: 1.3